/**************************************************************************************************
* Title: SumRenderHelpers.inl
* Author: Gael Huber
* Description: A series of helper functions for the rendering system.
**************************************************************************************************/

/**************************************************************************************************
* Function used for creating constant buffer
**************************************************************************************************/
//template <class T>
//HRESULT CreateConstantBuffer(ID3D11Device* pd3dDevice, ID3D11Buffer** ppCB) {
//	// Result to return
//	HRESULT hr = S_OK;
//
//	// Create the description for the buffer
//	D3D11_BUFFER_DESC desc;
//	desc.Usage = D3D11_USAGE_DEFAULT;
//	desc.BindFlags = D3D11_BIND_CONSTANT_BUFFER;
//	desc.CPUAccessFlags = 0;
//	desc.MiscFlags = 0;
//	desc.ByteWidth = sizeof(T);
//	
//	// Bind the buffer
//	V_RETURN(pd3dDevice->CreateBuffer(&desc, NULL, ppCB);
//
//	// Return the result
//	return hr;
//}